package com.example.project.ui.fragment;


import android.content.Intent;
import android.support.v4.app.Fragment;
import android.view.View;

import com.example.project.R;
import com.example.project.base.BaseFragment;
import com.example.project.presenter.DiscoveryPresenter;
import com.example.project.ui.activity.MapActivity;

/**
 * A simple {@link Fragment} subclass.
 */
public class DiscoveryFragment extends BaseFragment<DiscoveryPresenter> {

    public static DiscoveryFragment getInstance(){
        DiscoveryFragment fragment = new DiscoveryFragment();

        return fragment;
    }

    @Override
    protected DiscoveryPresenter initPresenter() {
        return null;
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initView(View inflate) {
        inflate.findViewById(R.id.btn).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(getContext(), MapActivity.class));
            }
        });
    }

    @Override
    protected int getLayout() {
        return R.layout.fragment_discovery;
    }
}
